package main

import "strings"

func toGoatLatin(sentence string) string {
	words := strings.Split(sentence, " ")
	res := ""
	for i, word := range words {
		newWord := ""
		if !isYuanPredix(word) {
			newWord += word[1:] + word[0:1] + "ma"
		} else {
			newWord += word + "ma"
		}
		for j := 0; j < i+1; j++ {
			newWord += "a"
		}
		if i != 0 {
			res += " "
		}
		res += newWord
	}
	return res
}

func isYuanPredix(word string) bool {
	word = strings.ToLower(word)
	c := word[0]
	if c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' {
		return true
	}
	return false
}

func main() {

}
